package Class.Advance.Polymorphism.Test.Employee2;

public class Employee {
    private String id;
    private String name;
    private int salary;
    private int reword;

    public Employee(){
    }

    public Employee(String id, String name, int salary, int reword) {
        this.id = id;
        this.name = name;
        this.salary = salary;
        this.reword = reword;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public int getReword() {
        return reword;
    }

    public void setReword(int reword) {
        this.reword = reword;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                ", reword=" + reword +
                '}';
    }

    public void eat(){
        System.out.println("吃米饭");
    }
}
